<%@page import="util.CacheUtil"%>
<%@page import="model.ProjectModel"%>
<%@page import="util.HtmlUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script language="javascript" type="text/javascript" src="js/jquery.min.js"></script>

<script type="text/javascript">
	$(document).ready(function(){
		// TODO calculate size
		//var x = $('mydiv').height();	
	    //var y = $('mydiv').width();
	    var x = 400;
	    var y = 350;
	    parent.$.colorbox.resize({width:x, height:y});
	});
</script>

</head>
<body>
<form id="inputForm" action="project?mode=insert" method="post" onSubmit="return checkInputs()" onreset="return confirm('Do you really want to reset the form?')">
		<input type="hidden" id="avatar" name="avatar" value=""/>
		<table cellspacing="0px">			
			<tr class="trField">
						<td class="tdFieldName">Project template</td>
						<td class="tdFieldInput">
							<select id="pm" name="pm" class="hyjack" title="Choose a manager for this project.">
								<%=HtmlUtil.<ProjectModel>genModelSelect(CacheUtil.getProjectTemplateList(), null, Integer.MIN_VALUE, false, false)%>
							</select>							
						</td>
						<td class="tdErrMsg">
						</td>
					</tr>				
			<tr class="trInputBottom">
				<td class="tdFieldName"></td>
				<td class="tdSubmit">
<!-- 					<div class="divButtonSubmit" > -->
<!-- 						<input class="btnSubmit" type="submit" value="Submit" title="Click to save above information." /> -->
<!-- 					</div> -->
					<a class="divButtonSubmit" href="projectNew.jsp?idProjectType=&idProjectTemplate=">Submit</a>
					<div class="divButtonReset">
						<input class="btnReset" type="reset" value="Reset" title="Click to reset all above fields." />
					</div>
					<div style="clear: both;">
					</div>
				</td>
			</tr>
		</table>
		</form>
</body>
</html>